Draft
Conversation
- Added helper function run_kjv_import() to execute import in background - Added import_kjv_bible admin action to BibleBookAdmin - Action runs import_kjv management command with --clear flag - Runs in background thread to prevent request timeouts - Uses Django messages to inform users of import status - Applied Black formatting to maintain code style Co-authored-by: bamaham93 <57500397+bamaham93@users.noreply.github.com>
- Added daemon=True to Thread constructor - Ensures background thread doesn't prevent application shutdown - Addresses code review feedback Co-authored-by: bamaham93 <57500397+bamaham93@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add admin-only import action for KJV Bible
Add admin action to import KJV Bible data
Jan 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Django admin action to trigger the existing
import_kjvmanagement command from the admin UI. Previously only accessible via CLI.Changes
run_kjv_import()helper: Wrapscall_command('import_kjv', '--clear')with logging and exception handlingimport_kjv_bibleadmin action: Spawns daemon thread to execute import without blocking HTTP requestImplementation
Usage
Navigate to Bible Books admin → select any book → choose "Import KJV Bible" from actions dropdown → click Go.
Screenshots
Admin action dropdown:

Success message:

Notes
Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.